package com.daohang361.imqq.decoder;

import com.daohang361.imqq.Asycore.QQUser;
import com.daohang361.imqq.tool.Hex2Bytes;

public class DecoderEC extends AbstractDecoder {
	/**
	 * 收到此包后设置登陆成功
	 */
	@Override
	public QQUser decode() throws Exception {
		myArray.decryptRemain(sessionQQ.getAttr("SessionKey"));
		decryptAll=myArray.extractAll();
System.out.println(Integer.toHexString(myArray.getCommand())+":"+Hex2Bytes.bytesToHexString(decryptAll));
		sessionQQ.setLogintimes(sessionQQ.getLogintimes()+1);//登陆包前进
		sessionQQ.setPakage(sessionQQ.getPakage()+1);//登陆包自动增长
	return sessionQQ;
	}
}
